class Koufei:
    def __init__(self,time,result):
        self.time = time
        self.result = result
    def feiyong(self,time,result):
        if self.time < 10:
            result = self.time * 1
            return result
        elif self.time < 20:
            result = self.time * 0.8
            return result
        else:
            result = self.time * 0.65
            return result
class Jifen:
    def __init__(self,time,score):
        self.time = time
        self.score = score
    def get_score(self):
        if self.time < 10:
            score_add =self.time * 15
            return score_add
        elif self.time < 20:
            score_add = self.time * 39
            return score_add
        else:
            score_add = self.time * 48
            return score_add


class Person:
    def __init__(self, name,sex, age,tel_money,tel_brand,
                 tel_cell,tel_screen,tel_await,tel_credit):
        self.name = name
        self.sex = sex
        self.age = age
        self.tel_money = tel_money
        self.tel_brand = tel_brand
        self.tel_cell = tel_cell
        self.tel_screen = tel_screen
        self.tel_await = tel_await
        self.tel_credit = tel_credit
    def send_sms(self, message):
        print("发短信的信息内容:", message)
    def call(self, number,time):
        self.number = number
        self.time = time
        if self.tel_money > 1 and number != "":
            print("正在拨打电话，请耐心等待")
            print("巴拉巴拉巴拉巴拉~~挂了啊")
            print("通话结束")
            kf = Koufei(self.time,self.tel_money)
            result = kf.feiyong(self.time,self.tel_money)
            print("您本次通话费用为:",result)
            jf = Jifen(self.time,result)
            score_add = jf.get_score()
            print("您本次通话获得积分:",score_add)
        else:
            print("余额不足或号码为空，无法拨打")



xiaoming = Person("小明", "男", 25, 10, "华为", "5000man", "6.5寸", "10分钟", 10)
xiaoming.send_sms("你好，我是小明，请问有什么可以帮助您？")
print("="*50)
xiaoming.call( "",20)
print("="*50)
xiaoming.call("10086", 15)
print("="*50)
xiaoming.call("10010", 25)











